package com.xdemo.manager;

import java.util.List;

import com.xdemo.model.VirtualUser;
import com.xdemo.query.QueryDefinitions;

public class VirtualUserDao extends BaseDao<VirtualUser> {

	public VirtualUserDao(DBManager dbManager) {
		super(dbManager);
	}
	
	public VirtualUser findByName(String name) {
		List<?> _result = this.findByNameQuery(QueryDefinitions.NAME_findVirtualUserByName,QueryDefinitions.KEYS_findVirtualUserByName,new Object[]{name});
		if(_result == null || _result.size() <=0) {
			return null;
		}
		return (VirtualUser)_result.get(0);
	}

}
